<template>
<<<<<<< HEAD
  <div class="myHeader" @click="$router.push('/city')">
    <div class="myHeader-top">
      <div class="myHeader-left">
        <slot name="left">

        </slot>
      </div>
      <div class="myHeader-inp">
        <slot name="inp">

        </slot>

      </div>
      <div class="myHeader-right">
        <slot name="right">

        </slot>

      </div>
    </div>
  </div>
</template>

<style lang="stylus" scoped>
.myHeader {
  width: 100%;
  height: 2rem;
  background-color: #03afc1;

  .myHeader-left {
    margin-left: 0.4rem;
  }

  .myHeader-top {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    .myHeader-left {
      color: white;
      font-size: 30px;
      flex: 10%;
    }

    .myHeader-inp {
      flex: 60%;

      input {
        width: 10rem;
        height: 1.3rem;
        border: 0;
        margin-top: 0.5rem;
        border-radius: 7px;
      }
    }

    .myHeader-right {
      flex: 20%;
      color: white;
      font-size: 0.7rem;
      text-align: center;
      margin-top: 0.3rem;
    }
  }
=======
  <div class="header">
    <slot></slot>
    <input type="input" :value="value" @input="changeval" @keydown.13="emitadd" />
  </div>
</template>

<script>
export default {
  props: ["value"],

  methods: {
    changeval(e) {
      this.$emit("input", e.target.value);
    },
    emitadd() {
      this.$emit("enter");
    }
  }
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 100px;
  background-color: black;
  color: white;
  text-align: center;
  line-height: 100px;
>>>>>>> 31a66a540e66d2ea5e63d0d0cbcb50c617fb80eb
}
</style>
